package com.baselibrary.libs.View.defined.defined_tab_layou.importPackAage;

/**
 * Created by 35876 于萌萌
 * 创建日期: 15:42 . 2017年02月01日
 * 描述:
 * <p>
 * <p>
 * 备注:
 */

public class MathUtils {
    MathUtils() {
    }

    public static int constrain(int amount, int low, int high) {
        return amount < low?low:(amount > high?high:amount);
    }

    static float constrain(float amount, float low, float high) {
        return amount < low?low:(amount > high?high:amount);
    }
}
